<?php
namespace gnomephp\commands;


use Symfony\Component\Console\Input\InputArgument,
Symfony\Component\Console\Input\InputOption,
Symfony\Component\Console,
Doctrine\ORM\Tools\Console\MetadataFilter;

/**
 * Command to create a new application
 */
class InfoGnomeCommand extends Console\Command\Command
{
	/**
	 * @see Console\Command\Command
	 */
	protected function configure()
	{
		$this
		->setName('gnomephp:info')
		->setDescription('Gives you framework information.')
        ->setHelp(<<<EOT
Gives you framework information of GnomePHP core framework.
You can see such information as version, authors and more.
EOT
                );
	}

	/**
	 * @see Console\Command\Command
	 */
	protected function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output){

		$output->write(sprintf('Framework name: %s', \gnomephp\Gnomephp::NAME)  . PHP_EOL);
		$output->write(sprintf('Version: %s', \gnomephp\Gnomephp::getVersion())  . PHP_EOL);
		if (!\gnomephp\Gnomephp::isStableRelease()){
			$output->write('IMPORTANT: You are not running a stable release. Stable releases is not marked with version name: "a"(alpha) or "b"(beta).'  . PHP_EOL);
		}
		
		
		$output->write('Authors:' . PHP_EOL);
		foreach(\gnomephp\Gnomephp::getAuthors() as $author){
			$output->write(' - ' . $author . PHP_EOL);
		}
		
		
		
	}




    
}